package com.baidu.www;

import java.sql.SQLOutput;

/**
 * ClassName: test2
 * Package: com.baidu.www
 * Description:
 *
 * @Author 蒋林康
 * @Create 2023/10/7 11:28
 * @Version 1.0
 */
//abstract class Father{
//    public void work(){
//        System.out.println("种田");
//    }
//    public abstract void school();
//}
interface Father2{
    public void work();
}
interface Father{
    public void work();
}
class Mather{
    public void work(){
        System.out.println("织布");
    }
}
class Son extends Mather implements Father,Father2{
    public void school(){
        System.out.println("大学");
    }
    public void work(){
        System.out.println("读书");
    }
}
public class test2 {
//    public static void school(Father f){
//     f.school();
//    }
    public static void work1(Father f){
        f.work();
    }
    public static void work2(Mather m){
        m.work();
    }
    public static void work3(Father2 f){
        f.work();
    }
    public static void main(String[] args) {
        Son s1=new Son();
//        school(s1);
        work1(s1);
        work2(s1);
        work3(s1);
    }
}
